<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<!-- Basic Page Needs
  ================================================== -->
<meta charset="utf-8">
<link rel="shortcut icon" href="<?php echo $this->webroot . $settings['favicon'] ?>" />
<title><?php
        if(isset($meta_title) && @$meta_title != '')
            echo $meta_title;
        else
            echo $settings['meta_title_default'];
    ?>
</title>
<meta name="description" content="<?php
        if(isset($meta_description) && @$meta_description != '')
            echo $meta_description;
        else
            echo $settings['meta_description_default'];
    ?>
"/>
<meta name="author" content="<?php
        if(isset($meta_keywords) && @$meta_keywords != '')
            echo $meta_keywords;
        else
            echo $settings['meta_keywords_default'];
    ?>
"/>

<!-- CSS
  ================================================== -->

<?php echo $this->Html->css(array('all','custom','other','zoom','jquery.mCustomScrollbar','star-rating','bootstrap', 'jquery.datetimepicker', 'menu_mobile')); ?>
<?php echo $this->Html->script(array('jquery', 'jquery.easing.1.3', 'class.slider_home', 'class.home', 'class.slider.bottom', 'jquery.mCustomScrollbar', 'star-rating', 'slick', 'jquery.touchme', 'class.SiteMain', 'custom', 'zoomple-1.4', 'jquery.validate.min', 'jquery.datetimepicker')) ?>
<?php
	 $this->Js->set('is_mobile', !empty($is_mobile) ? $is_mobile : false);
	 $this->Js->set('is_tablet', !empty($is_tablet) ? $is_tablet : false);
?> 
<?php if(!empty($is_mobile)) { ?>
	<meta name="viewport" content="width=550">	
<?php } ?>

<script type="text/javascript">
    var is_mobile = '<?php echo $is_mobile ?>';
	$(document).ready(function() { 	
	$('.zoomple').zoomple({ 
			blankURL : '../images/blank.gif',
			loaderURL : '../images/loader.gif'
			});
	
	$('.zoompleFixed').zoomple({offset : {x:4,y:0},windowPosition : {x:'right',y:'bottom'}, zoomWidth : 250,  zoomHeight : 250, attachWindowToMouse : false}); 
	$('.zoompleDiffWidth').zoomple({offset : {x:10,y:10}, zoomWidth : 250, delay : 1000, zoomHeight : 250}); 
 }); 
</script> 
<script>
    var base_url = '<?php echo $this->general->base_url() ?>';
    var webroot = '<?php echo $this->webroot ?>';
</script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5471f33675d195b3" async="async"></script>
</head>

<?php $lang = isset($_REQUEST['lang']) ? $_REQUEST['lang']: "nl";?>

<body class="<?php if($is_mobile) echo 'mobile';?>">
	<div id="container">
        <div class="wrapper">
            <?php echo $this->element('top-nav'); ?>
            <?php echo $this->element('adv'); ?>
        	<?php echo $this->fetch('content'); ?>
        </div>
    </div>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/vi_VN/sdk.js#xfbml=1&appId=903724722988224&version=v2.0";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
</body>
</html>